package com.neuedu.service;

import com.neuedu.entity.Resume;
import com.neuedu.entity.ResumeSubmit;
import io.minio.errors.*;
import jakarta.servlet.http.HttpServletResponse;
import org.apache.xmlbeans.XmlException;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;
import java.security.InvalidKeyException;
import java.security.NoSuchAlgorithmException;

public interface ResumeService {

    Resume saveOrUpdateResume(Resume dto, MultipartFile file) throws ServerException, InsufficientDataException, ErrorResponseException, IOException, NoSuchAlgorithmException, InvalidKeyException, InvalidResponseException, XmlParserException, InternalException;

    Resume getResumeByUserId(Long userId);

    void downloadResume(Long userId, HttpServletResponse response) throws XmlException, IOException;
}
